﻿@model MusicOnLine.Models.AACInfo

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layoutback.cshtml";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>AACInfo</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.AlbumID)
        </div>
        <div class="editor-field">
            @Html.DropDownList("AlbumID",ViewBag.AlbumList as SelectList)       
            @Html.ValidationMessageFor(model => model.AlbumID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Album)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Album)
            @Html.ValidationMessageFor(model => model.Album)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AlbumArtist)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AlbumArtist)
            @Html.ValidationMessageFor(model => model.AlbumArtist)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ArtistID)
        </div>
        <div class="editor-field">
            @Html.DropDownList("ArtistID",ViewBag.ArtistList as SelectList)
            @Html.ValidationMessageFor(model => model.ArtistID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Artist)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Artist)
            @Html.ValidationMessageFor(model => model.Artist)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BitRate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BitRate)
            @Html.ValidationMessageFor(model => model.BitRate)
        </div>
       
        <div class="editor-label">
            @Html.LabelFor(model => model.Genre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Genre)
            @Html.ValidationMessageFor(model => model.Genre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Location)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Location)
            @Html.ValidationMessageFor(model => model.Location)
        </div>       

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayedCount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayedCount)
            @Html.ValidationMessageFor(model => model.PlayedCount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ReleaseDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReleaseDate)
            @Html.ValidationMessageFor(model => model.ReleaseDate)
        </div>       

        <div class="editor-label">
            @Html.LabelFor(model => model.Time)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Time)
            @Html.ValidationMessageFor(model => model.Time)
        </div>       

        <div class="editor-label">
            @Html.LabelFor(model => model.Year)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Year)
            @Html.ValidationMessageFor(model => model.Year)
        </div>
       
        @Html.HiddenFor(o=>o.CreateBy)
        @Html.HiddenFor(o=>o.CreateDate)
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#divMangeAAC").addClass("currentMenu");
    })
</script>